
$(document).ajaxError(function( event, xhr, settings ) {
    var info = xhr.responseText;
    if(info == 'UNLOGIN'){
        window.location.href = "{:U('Login/index')}";
        return;
    }
});